import React from "react";

const Error500: React.FC = () => {
  const containerStyle: React.CSSProperties = {
    display: "flex",
    flexDirection: "column",
    alignItems: "center",
    justifyContent: "center",
    height: "100vh",
    fontFamily: "custom-font, Arial, sans-serif",
  };

  const emojiStyle: React.CSSProperties = {
    fontSize: "4rem",
    marginBottom: "1rem",
  };

  const headingStyle: React.CSSProperties = {
    fontSize: "1.5rem",
    marginBottom: "0.5rem",
  };

  const messageStyle: React.CSSProperties = {
    fontSize: "1rem",
    textAlign: "center",
  };

  return (
    <div style={containerStyle}>
      <span role="img" aria-label="error" style={emojiStyle}>
        😵
      </span>
      <h2 style={headingStyle}>500 状态码意味着服务端无法处理请求</h2>
      <p style={messageStyle}>Oops! 肯定有什么地方出错了.</p>
    </div>
  );
};

export default Error500;
